import request from '@/utils/request'
//拿到所有文章
export const GetIndexAllACtircle = (data) => request({
	url: '/wx/articles/indexlists',
	method: 'post',
	data
})
//发布文章
export const putActricle = (data)=>request({
    url:'/pc/articles',
    method: 'post',
    data
})
//修改文章
export const updateActricle = (data)=>request({
    url:'/pc/articles/listArticle',
    method:'post',
    data
})
//拿到文章
export const GetDetailTitle = (Id)=>request({
    url:`/pc/articles/detail/${Id}`,
    method:'get'
})
//删除文章
export const DeleteActricle = (id)=>request({
url:"/pc/articles",
method:'get',
params:{
    id
}
})
//删除一张轮播图图片
export const deleOnePicture = (id)=>request({
    url:`/deleteOne/${id}`,
    method:'get'
})
//插入一张图片
export const addOnePicture = (data)=>request({
    url:'/insert',
    method:'post',
    data
})
//拿到所有图片资源
export const getAllPicture = ()=>request({
    url:'/list',
    method:'get',
})
//修改一张图片
export const updateOnePicture = (data)=>request({
    url:'/updateOne',
    method:'post',
    data
})
//拿到所有文章
export const GetAllPicId = ()=>request({
    url:'/',
    method:'get'
})


